/*
 * @Author: Sakura
 * @Date: 2023-08-21 10:28:23
 * @LastEditors: Sakura
 * @LastEditTime: 2023-08-22 16:02:49
 * @Description: 
 */

import { useRoutes,} from "react-router-dom"
import router from "./router"

function App() {
  const outlet = useRoutes(router);

  return (
    <div className="App">
      {/* 旧版写法 */}
      {/* 占位符组件，类似于窗口，用来展示组件的，有点像vue中的router-view */}
      {/* <Outlet></Outlet> */}

      {/* 新版写法 */}
      { outlet }
    </div>
  )
}

export default App
